package com.fy.fyspace.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RateLimiterConfig {

    @Value("${rate.limiter.capacity:100}")  // 默认值为100
    private Long capacity;

    @Bean
    public Long rateLimiterCapacity() {
        return capacity;
    }
}